package io.renren.modules.workplan.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.workplan.dao.WorkplanDao;
import io.renren.modules.workplan.entity.WorkplanEntity;
import io.renren.modules.workplan.service.WorkplanService;
@Service("workplanService")
public class WorkplanServiceImpl extends ServiceImpl<WorkplanDao, WorkplanEntity> implements WorkplanService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorkplanEntity> page = this.page(
                new Query<WorkplanEntity>().getPage(params),
                new QueryWrapper<WorkplanEntity>()
        );

        return new PageUtils(page);
    }

}